package com.rs.game.player.content.dungeoneering.rooms;

import com.rs.game.player.content.dungeoneering.DungeonManager;
import com.rs.game.player.content.dungeoneering.RoomReference;
import com.rs.utils.Utils;

public final class StartRoom extends HandledRoom {

    private int[] complexitys;
	private int type;

    public StartRoom( int[] complexitys, int chunkX, int chunkY, int... doorsDirections) {
	super(chunkX, chunkY, new RoomEvent() {
	    @Override
	    public void openRoom(DungeonManager dungeon, RoomReference reference) {
		dungeon.telePartyToRoom(reference);
		dungeon.spawnNPC(reference, 11226, 6 + Utils.random(3), 6 + Utils.random(3)); 
		//dungeon.spawnObject(reference, id, x, y);
		dungeon.linkPartyToDungeon();
	    }
	}, doorsDirections);
	this.complexitys = complexitys;
    }

    @Override
    public boolean isComplexity(int complexity) {
	for (int c : complexitys)
	    if (c == complexity)
		return true;
	return false;
    }

}
